<?php if (!defined('SHUIPF_VERSION')) exit(); ?>
<Admintemplate file="Common/Head"/>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
<Admintemplate file="Common/Nav"/>
<!-- <div class="mb10">
<a href="javascript:void(0)" onClick="javascript:openwinx('{:U("Buy/Buy/addGoods")}','')" class="btn" title="添加商品">
	<span class="add"></span>
	添加商品
</a>

</div> -->
<!-- <div class="h_a">搜索</div>
<form method="get" action="">
<input type="hidden" value="Contents" name="g">
<input type="hidden" value="Content" name="m">
<input type="hidden" value="classlist" name="a">
<input type="hidden" value="{$catid}" name="catid">
<input type="hidden" value="0" name="steps">
<input type="hidden" value="1" name="search">
<div class="search_type cc mb10">
	<div class="mb10">
		<span class="mr20">
			时间：
			<input type="text" name="start_time" class="input length_2 J_date" value="{$Think.get.start_time}" style="width:80px;">
			-
			<input type="text" class="input length_2 J_date" name="end_time" value="{$Think.get.end_time}" style="width:80px;">
			<select class="select_2" name="posids"style="width:70px;">
				<option value='' <if condition=" $posids == '' ">selected</if>
				>全部
			</option>
			<option value="1" <if condition=" $posids == 1 ">selected</if>
			>推荐
		</option>
		<option value="2" <if condition=" $posids == 2 ">selected</if>
		>不推荐
	</option>
</select>
<select class="select_2" name="searchtype" style="width:70px;">
	<option value='0' <if condition=" $searchtype == '0' ">selected</if>
	>标题
</option>
<option value='1' <if condition=" $searchtype == '1' ">selected</if>
>简介
</option>
<option value='2' <if condition=" $searchtype == '2' ">selected</if>
>用户名
</option>
<option value='3' <if condition=" $searchtype == '3' ">selected</if>
>ID
</option>
</select>
关键字：
<input type="text" class="input length_2" name="keyword" style="width:200px;" value="" placeholder="请输入关键字...">
<button class="btn">搜索</button>
</span>
</div>
</div>
</form> -->
<form class="J_ajaxForm" action="" method="post">
<div class="table_list">
<table width="100%">
<colgroup>
<col width="50">
<col width="200">
<col width="200">
<col width="100">
<col width="100">
<col width="150">
<col width="120">
<col width="150">
<!-- <col width=""> -->
<col width="100">
</colgroup>
<thead>
<tr>
<td>ID</td>
<td>订单号</td>
<td>下单时间</td>
<td>用户名</td>
<td>付款金额</td>
<td>订单状态</td>
<td>姓名</td>
<td>联系方式</td>
<!-- <td>附言</td> -->
<td>管理操作</td>
</tr>
</thead>
<volist name="list" id="vo">
<tr>
<td>{$vo.id}</td>
<td>
{$vo.ordersn}
</td>
<td>
{$vo.addtime|date="Y-m-d H:i:s",###}</td>
<td>
{$vo.username}
</td>

<td>{$vo.price}</td>
<td>
{$vo.ispayname}</td>
<td>{$vo.truename}</td>
<td>{$vo.phone}</td>
<!-- <td>{$vo.remark}</td> -->
<td>
<a href="{:U('Buy/Buy/orderDetails',array('id'=>$vo['id']))}" >详情</a>
|
<a href="{:U("Buy/Buy/delOrder",array("id"=>$vo['id']))}" class="J_ajax_del" >删除</a>
</td>
</tr>
</volist>
</table>
<div class="p10">
<div class="pages">{$Page}</div>
</div>

</div>
<!-- <div>
<div class="btn_wrap_pd">
<label class="mr20">
<input type="checkbox" class="J_check_all" data-direction="y" data-checklist="J_check_y">全选</label>
<button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Contents/Content/listorder',array('catid'=>$catid))}">排序</button>
<button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Contents/Content/public_check',array('catid'=>$catid))}">审核</button>
<button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Contents/Content/public_nocheck',array('catid'=>$catid))}">取消审核</button>
<button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Contents/Content/delete',array('catid'=>$catid))}">删除</button>
<button class="btn" type="button" onClick="pushs()">推送</button>
<button class="btn" type="button" id="J_Content_remove">批量移动</button>
<button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Contents/Createhtml/batch_show',array('catid'=>$catid,'steps'=>0))}">批量生成HTML</button>
</div>
</div> -->
</form>
</div>
<script src="{$config_siteurl}statics/js/common.js?v"></script>
<script>
setCookie('refersh_time', 0);
function refersh_window() {
    var refersh_time = getCookie('refersh_time');
    if (refersh_time == 1) {
        window.location.reload();
    }
}
setInterval(function(){
	refersh_window()
}, 3000);
// $(function () {
//     Wind.use('ajaxForm','artDialog','iframeTools', function () {
//         //批量移动
//         $('#J_Content_remove').click(function (e) {
//             var str = 0;
//             var id = tag = '';
//             $("input[name='ids[]']").each(function () {
//                 if ($(this).attr('checked')) {
//                     str = 1;
//                     id += tag + $(this).val();
//                     tag = '|';
//                 }
//             });
//             if (str == 0) {
// 				art.dialog.through({
// 					id:'error',
// 					icon: 'error',
// 					content: '您没有勾选信息，无法进行操作！',
// 					cancelVal: '关闭',
// 					cancel: true
// 				});
//                 return false;
//             }
//             var $this = $(this);
//             art.dialog.open("{$config_siteurl}index.php?g=Contents&m=Content&a=remove&catid={$catid}&ids=" + id, {
//                 title: "批量移动"
//             });
//         });
//     });
// });

// function view_comment(obj) {
// 	Wind.use('artDialog','iframeTools', function () {
//          art.dialog.open($(obj).attr("data-url"), {
// 			close:function(){
// 				$(obj).focus();
// 			},
//             title: $(obj).attr("data-title"),
// 			width:"800px",
//             height: '520px',
// 			id:"view_comment",
//             lock: true,
//             background:"#CCCCCC",
//             opacity:0
//         });
//     });
// }

// function pushs() {
//     $("form").submit(function () {
//         return false;
//     });
//     var str = 0;
//     var id = tag = '';
//     $("input[name='ids[]']").each(function () {
//         if ($(this).attr('checked')) {
//             str = 1;
//             id += tag + $(this).val();
//             tag = '|';
//         }
//     });
//     if (str == 0) {
//        art.dialog({
// 		   id:'error',
// 		   icon: 'error',
// 		   content: '您没有勾选信息，无法进行操作！',
// 		   cancelVal: '关闭',
// 		   cancel: true
// 		});
//         return false;
//     }
//     Wind.use('artDialog','iframeTools', function () {
//          art.dialog.open("{$config_siteurl}index.php?g=Contents&m=Content&a=push&action=position_list&modelid={$modelid}&catid={$catid}&id=" + id, {
//             title: "信息推送"
//         });
//     });
// }
</script>
</body>
</html>